package test0102;

public class Platform {
    String name;
    Order[] arr = new Order[5];
    int i = 0;

    public Platform() {
    }

    public Platform(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Platform{" +
                "name='" + name + '\'' +
                '}';
    }


    public void add(Order o1) {
        arr[i] = o1;
        System.out.println(arr[i]);
    }
}
